import {get,post} from '@/utils/request'
import el from 'element-ui/src/locale/lang/el'

export function getList(params) {
  return get('/ht/identificationList.json',
    params)
}

export function getDataList(params) {
  return get('/ht/identificationDataList.json',
    params)
}

export function prefixList() {
    return get("/ht/prefixListNoPage.json");
}

export  function  initModelData(id) {
  return get("/ht/modelDataByTemplateId.json",{templateId:id})
}

export function  dataModelAdd(params) {
  return post('/ht/dataModelAdd.json',params)
}

export  function identificationDataAdd(params) {
  return post('/ht/identificationDataAdd.json',params)
}

export function  identificationDataDel(id) {
  return post('/iden/identificationDataDel.json',{id:id})
}

export function  initDataModelData(id) {
   return get("/ht/dataModelDataList.json",{dataModelId:id})
}

export function identificationDetail(identification) {
  return get(
    '/ht/identificationDetail.json',{identification:identification}
  )
}

